package com.huice.huiceconsumer.controller;

import com.huice.huiceconsumer.feign.ProviderFeinInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author 赵凯
 * @Date 2021/7/14 13:04
 **/
@RestController
@RequestMapping("/consumer")
public class ConsumerController {

    @Autowired
    private ProviderFeinInterface providerFeinInterface;

    @RequestMapping("/consume")
    public String consume() {
        String name = providerFeinInterface.provideName();
        return "你好,"+name;
    }
}
